function main(){
    const self = this;
    const fileId1 = self.$$("upload_9aurrp").cValue;
    const fileId2 = self.$$("upload_9aurrp").cValue;


    if(fileId1 && fileId2){
        self.$$("text_input_dvzon1").cValue = fileId1 + "," + fileId2;
        self.onChange();
    }

}


/**
 * 页面 - 发起流程前置判断
 */
function main() {
    const self = this; // 作用域
    const tableComp = self.$$element("table_hpjsx7"); // 获取表格元素
    // 获取当前表格选中的行
    const {selectedRows} = tableComp.$$getSelection();
    // 获取表格绑定的数据集
    let params = false;
    if (selectedRows.length === 0) {
        this.$message.warning("请选择要发起人员资格申请的数据！");
        params = false;
    } else {
        params = true;
    }

    return params;
}

/**
 * 参数传递
 */
function main(params)
{
    debugger
    const self = this; // 作用域
    const tableComp = self.$$element("table_hpjsx7"); // 获取表格元素
    // 获取当前表格选中的行
    const {selectedRows} = tableComp.$$getSelection();
    let cardIds = getValidHumanIds(selectedRows);

    return {
        'cardIds': cardIds
    };
}

function getValidHumanIds(rows) {
    return rows
        .filter(row => ["0", "3"].includes(row.qualification_code.value))
        .map(row => row.humanId.value)
        .join(",");;
}
